Food/nutrients

Can i eat m&ms while pregnant? And what foods should i get and what should i avoid. Thanks in advance xx