no you can safely sleep with commercial earplugs. homemade ones perhaps not. earplugs made with a wad of cotton can become trapped in the ear but those inexpensive foam ones designed to block ambient noise are fine to use. have a good night's sleep. as long as the ear plugs are well fitted to your ears you should be fine. you obviously don't want them to be able to get inside the ear canal where they could be difficult to remove.
is it dangerous to sleep with ear plugs in?