sleeping on sides or back?

is it required to sleep on side? if sleep on back, does it harm the baby and eventually having a still birth?