whenever you get attacked you get 24 hours damage protection
you can build scouts and starbases from damage protection as well as explore
building any ships other then scouts and starbases will bring you out of damage protection
also ships have different strengths and weaknesses which you can see here:
GC Ship List/ Manual