Short answer: yes. Subarus years before that had more than their fair share of head gasket problems, but I don't know exactly what year Subaru fixed it by revising the design of the gaskets.
Longer answer: it doesn't affect all cars. My '04 Forester was slowly consuming coolant so I thought the head gaskets were failing. But when doing the 100k service I found a slow coolant leak around a faulty water pump gasket. UOA showed no traces of coolant in the oil, and the old coolant looked clean. After servicing and refill, I used the conditioner Subaru recommends (as well as the normal service of replacing the water pump, gasket, timing belt, tensioner, pulleys, etc.) and the car is no longer consuming coolant. I never had to replace the head gaskets. The point is, old Subarus have more than their fair share of head gasket failures, but it doesn't affect all cars, and replacing them is expensive, so make sure that's really the problem before diving into an expensive repair.