Do you take Melatonin for sleep during pregnancy?

M
I've been having issues sleeping without being interrupted and waking up  (currently 28 weeks) and have seen a few ladies suggesting melatonin sleep pills. Do you any of you ladies take it during pregnancy, and does it work? I also work full-time, so a full/decent nights rest is so important. 😔