Morning sickness

Hi, so I’m 18 weeks pregnant and I just started getting nausea or “ morning sickness “ the doctor prescribed me zofran and it helps throughout the day but I noticed if I eat at night like 6-8 I get super nauseous for the rest of the night and not even the medicine helps, did this happen to anyone else?