You should always wear your CPAP. Just make sure that you clean your mask thoroughly after using it. Remember...as much as cold sores SUCK and you don't want to spread them around, not breathing is worse.
Do you have medicated cream for your cold sore? What I do is slather the cream on, then cover with a band-aid, then put my mask on.