Yes, but the taste will be worse.
Milk is thin, so it can't be replaced in equal amount, so the dosage should be reduced.
Light cheese can be made without butter, and light milk recipes can be made without butter.
We still need heavy cheese. It is not recommended to replace it with other oils, which will affect the taste.
Moreover, there are many liquid components in other oils, and the dosage is very different from that of butter.