Yes, pistachio oil can be used to flavor gelato, but we also recommend pistachio paste along with the oil.
https://www.gourmetfoodworld.com/gelatech-pistachio-gelato-and-pastry-paste-16636