No, they are military targets too, particularly when they are fueling an active war effort.
The amount of handwringging over calling Russian refineries military targets, or trying to act like they mostly civie installations even in the context of this war, by certain groups is really odd, and...