Legs behind my head?

As

I have long legs and can put them behind my head without much effort. I did it last night when my fiancé asked if I still could being 4 months pregnant. It didn't occur to me until just now that I could possibly hurt the baby. I can't find anything on google so any opinions are appreciated.