can you breastfeed from one side only?

I'm on the verge of moving to formula but I am being very hard on myself about this decision. My baby is 1 month. I've had clogged milk ducts and now mastitis on the right side. I want to cut my boob off it hurts so bad. After this clears up, can I only breastfeed on the left?