Fuel Pump placement

I was back under the car today. Can you mount these small pumps on their side like this or do they have to sit flat?
IMG_20200507_184830.jpg