Question: can you house train a cow?
Answer: No, it's not possible to house-train animals that don't naturally poop away from where they sleep (non denning animals). You can put your cow on a very regular feeding schedule, and what goes in will eventually have to come out.