Help!

im 17 weeks and i have a hard time going to sleep at night. can i take benadryl? im horrified to but i need to rest.. is it safe?