Sleeping positions

This may be a stupid question, but is it okay to sleep like this while 10 weeks

It doesn’t hurt, but I know the baby is positioned where I always prop my leg up and I don’t know if it’s safe or not