Sleeping position

Can sleeping position affects the baby? I’ve been sleeping mostly on my back cause thats the most comfortable position