There are peace treaties that happen every time your base is killed and the attacker gets a Victory. Then you can not be raided for a good period (often 12-24 hrs).
There is nothing to be fear about being raided. You do not lose any buildings, troops, research.... all you lose is a small percentage of resources.
In that light, if you raid others yourself and learn now to raid well, you will always make more than you lose. There are many inactive bases of quit players that are easy to raid.
Enjoy the game
NoVelcro - Dominations Jedis.