No, Barney Stinson, the fictional character from the sitcom How I Met Your Mother, never got anyone pregnant. He was known for his commitment to avoiding any form of commitment, including fatherhood.
Barney's character was defined by his aversion to relationships and his dedication to a self-created lifestyle of "playbook" rules and one-night stands. He actively avoided situations that could lead to pregnancy, often using various tactics to prevent it. This was a major part of his character arc and a source of humor throughout the series.
While Barney's promiscuity was a significant aspect of the show, his avoidance of fatherhood was always emphasized. This was in stark contrast to the other main characters, who grappled with the realities of relationships, marriage, and parenthood.
The show never depicted Barney as ever wanting to be a father, and the writers consistently emphasized his aversion to commitment. This consistent portrayal of his character makes it clear that he never got anyone pregnant.