You could try to mask but you will not get as good a job with the tires on.
If you have a bead breaker you can break the bead and put masking paper around the tire and rim and get a better job than trying just to mask the tire.
It mostly depends on how good of job you want, the best results would be with the tire off the rim.