Can I take care of a pilar cyst myself?

Possible. A doctor would likely excise the cyst with a scalpel then suture it back together. It might be very tricky to do on yourself since pilar cysts are not often located where you could see or each easily.