People can sleep on their side while wearing a CPAP mask.
Some companies manufacture masks that may be more suitable for side sleepers. These masks may be less likely to cause discomfort due to the product pressing into the skin while a person is sleeping.