Sleeping position

Does lying on back or straight on bed during night is bad for baby or not?