With the adavances of lab grown meat, I’d bet they could.
Makes ya think though doesn’t it? There could be a time when humans are drinking lab produced cows milk from an artificial organ. And people call us vegans extreme ;)
I really long for the day where we can grow in the lab the stuff we currently harm animals for, but a big "if" will be whether we can replicate the nutritional profile. A lot of vegan-friendly food I find is bulked up with carbohydrates and/or soy protein.
That's a very valid concern. For our space faring successors though, this would perhaps be the most important breakthrough.
Going off on a tangent here but If you could replicate earth-obtained food in space, it would probably make me much more amenable to the idea of shooting out into the void and living my whole life there.
Much of the milk isn't produced in the udder, but transported through the blood.
But there is also a whole lot of immune tissue and hormonal regulation going on. I doubt that the way towards "cow less cow's milk" will go through ex-vivo mammaries.