But the new research found that taking painkillers in pregnancy could harm future fertility of subsequent offspring, which would therefore have an impact on boys as well as girls.

The research found that tissue samples of ovaries exposed to paracetamol for one week had more than 40 per cent fewer egg-producing cells, and after ibuprofen exposure the number of cells was almost halved.

This could lead to a risk of fertility issues and also early menopause.

With boys, the drugs reduced sperm-producing cells by around a quarter.

Mice carrying grafts of human foetal testicular tissue showed a 17 per cent drop in the number of sperm-producing cells after a day and were down by almost a third after a week.

Could taking painkillers while pregnant impact the fertility of future generations? [Photo: Getty]

Commenting on the findings, Dr Rod Mitchell, who led the research at the University of Edinburgh’s MRC Centre for Reproductive Health, said: “We would encourage women to think carefully before taking painkillers in pregnancy and to follow existing guidelines – taking the lowest possible dose for the shortest time possible.”

“Women should not be alarmed by the results. Paracetamol is widely accepted as a safe painkiller for pregnant women to take, and can be very beneficial when a pregnant woman is suffering with a migraine, for example.”

“We recommend that women follow current guidance and take the lowest effective dose of paracetamol for the shortest possible time. If this doesn’t treat the pain, they should to speak to their GP, midwife, or obstetrician. Pregnant women are generally advised to avoid taking ibuprofen as it is associated with an increased risk of compilations,” he added.

Recent figures have revealed that an estimated three in 10 women take ibuprofen in the first three months of pregnancy.

According to theNHSpregnant women are generally encouraged to avoid taking ibuprofen with paracetamol recommended as a safer option.

“Ibuprofen shouldn’t be used when you’re 30 or more weeks pregnant, unless it’s on the advice of a doctor,” the site advises.

“This is because taking ibuprofen at this stage of pregnancy is associated with an increased risk of complications, including a heart problem in your baby and a reduced amount of amniotic fluid.”

The site also advises pregnant women that if they have taken ibuprofen after 30 weeks of pregnancy, they should let their GP or midwife know so they can assess their baby’s wellbeing.