If its not, then you have some very stupid law makers in Poland.
Voluntary sterilization legalized in many countries , m . In . United States, Canada, Australia , India, China , Singapore, Japan , Sweden , Denmark , Germany. However, he could be the sterilization procedure requires there a rule that the conditions relating to the consent of the person concerned, appropriate medical care , social conditions , specified timeout period for surgery thoughtfully , children possession of the minimum of potential parents and others.
rtokarcz.nazwa.pl/antrpl/antp.htm
For many years sterilisation (both vasectomy and tubal ligation) have been illegal in France, because of the 19th century "Code Napoleon", which proscribes acts of so-called 'self mutilation'. Doctors performing vasectomies in France risk criminal charges, though there hasn't been an actual prosecution on the issue for over forty years. Nevertheless, the law surrounding vasectomy in France is sufficiently vague enough to prevent most French doctors risking criminal prosecution or civil litigation if they perform the service. So few are performed that the most recent statistics on global contraceptive usage published by the United Nations lists the number of vasectomies (...)
ncbi.nlm.nih.gov/pubmed/3429891 (abstract from 1987)
So as you see vasectomy was illegal not only in Poland.