No. Programmers are not Engineers. Professional Engineers are
Did I say they couldn't? No, mostly they just don't, because it's entirely irrelevant. Is there an Underwriters' Labs for bridges in your country?
The OP was trying to say that it was the professional certification that made you an engineer, and apparently wanted laws to prohibit the rest of us from calling ourselves engineers. That is, he seemed to be trying to hijack a common English word to a particular clique's agenda, which is a popular sport nowadays. My list of "non-engineers" showed the absurdity of the scheme.
I don't look on engineers with scorn, and nobody I know treats me with scorn, either. If you're an engineer and people diss you, you need a better class of friends, that's all. And you're confusing a government-issued certificate with a voluntary professional organization like the IEEE. The one is useless, the other just mostly useless.
Of all the EEs I've ever known (hundreds), I think two were P.Eng.'s, and they were far from the best of the bunch.
And I used to belong to the IEEE, but it was a waste of money. If you're an academic, joining one of those outfits where they give awards to each other can help your career. I still belong to the Optical Society, but that isn't what makes me an electrooptical physicist.
On the larger question of software quality, I think everyone here is in violent agreement that it's generally very poor indeed, and ought to be improved as a matter of urgency.
However, even a relatively small piece of software is more complicated than a bridge, so there's no universally-applicable method to verify it. The motor industry has a set of software guidelines (MISRA) that are pretty useful, but it's really up to programmers whether they're going to let bugs into the master sources.
There's an excellent book (fairly old now) by Steve Maguire, "Writing Solid Code" that goes into a lot of that stuff. It predates test-driven design, but is otherwise spot-on.
There's a safety culture in some areas, e.g. avionics and (mostly) vehicles, and their code is generally a lot less buggy. Until and unless a similar safety culture spreads, we're going to have a lot of bugs.
Cheers
Phil Hobbs