As long as it's not a constant thing (days, weeks) then to get yourself switched is fine. Actually toward the end of pregnancy most woman are uncomfortable and excited therefore do not get much sleep. So the main thing is to just relax and rest. So even though you may be pushing yourself to get back on track, just take 15-20 min throughout the day and rest. Have a cup of tea kind of resting..
Hope that helps.
