No, but he did go against God, which I often see this framed as.
Galileo was a devout Christian for his whole life.
There is a vast difference between murdering an unborn baby, and saying that the sun is in the center of the universe. The first is doctrinal, the second is not.
It's too bad that Galileo was persecuted. It's also too bad that the Church suffers today, due to liberal clergy. The Church is perfect, individuals within the Church are not. But neither situation negates the Truth.
Whatever way you want to slice it, it's still a moral evil of the worst kind to murder a baby, from conception onward.