Not sure whether you are asking about activity during treatment, but if you are, than the answer is yes, up to a point.
Pericarditis is an inflammation
of the lining around the heart
and it is important not to overstress the heart during the course of the illness, otherwise it may provoke potentially serious arrhythmias. Most low strenuous activities of daily living can be done during treatment.