Yes, but a big part of Catholic teaching is that Catholics have a responsibility to go out to the entire world and help everyone, not just the people we like or who are Catholics like us…
If Catholics were to stop ministering to non Catholics because we want to keep the purity of our teachings, we would be like the Priest/Levite in the story of the Good Smaritian who left the injured person on the side of the road, because they wanted to keep their ritual purity.
As for this whole issue, I am of course against this law, but I do want to point out something. My mom isn’t a Catholic and she for a long time worked for a clinic… However, the clinic, which was secular in nature, was suddenly bought out by the Catholic Church… My mom and her collegues in this circumstance certainly didn’t choose to work for a Catholic company or sign up for it, and I remember my mom was quite sad for her boss who was getting ready to have her sister in law carry her baby (as a surrogate). Everything was set and then well the Catholic Church took over.
Now, I disagree with invitro and all of that, but I can see why a non Catholic might be a bit upset that their hospital was “bought out” by a Catholic organization and suddenly their life gets turned upside down.