You can, but I think it's best if you use coconut milk instead. Coconut goes really well with pineapple. Regular dairy milk can curdle with pineapple and there's even a compound in pineapple that can react with milk and cause some stomach/headache issues.