On the stove yes, but in Instant Pot no. Pressure cooking pasta in milk will cause the milk to curdle and separate. It will also give BURN notice since milk scorches at high pressure cooking. SO cook the pasta in broth and water instead and add milk later.