Yes, you can substitute whole milk with lactose-free milk or other non-dairy alternatives such as almond or soy milk. As for cheese, there are many lactose-free cheeses available in the market today. Just make sure you choose one that melts well to maintain the texture and flavor of the pie.