Benadryl and ttc!?

Is it safe to take Benadryl to try to sleep when ttc? I usally take melatonin but i heard its not good