Sleeping positions

Can I sleep sitting up? I'm 21 weeks I'm not laying flat I'm on a few pillows.