It depends on the firearm. I have a Springfield Arms Model 87A "gill gun" that is hit or miss. It is a tube-fed .22LR beater that I got for free from a friend. Would I retire it? Nah, it is a beater .22LR that's still fun to take to the range. Sure, it chokes sometimes. But it isn't a make or break it issue for me. It is an old .22LR from before the '68 GCA when reliability out of a consumer grade .22LR had a much lower than what we'd expect today.
Now, if it was my carry piece like my Ruger LCP Custom, GLOCK 17, or S&W Model 342Ti and they malfunctioned. That's a big issue and the gun is being "retired" to getting fixed, being sold, or becoming a range toy.