I believe that yes a religion up to a certain point can impact on the law. If this religion says to go kill someone that is just an excuse to get away with murder. But if it says to get an abortion on your baby it’s up to you on weather or not you follow your religion.
I just wanna say I do not support abortions but it is the parents choice not the laws.