Do weapons improve in Battlefield: Bad Company 2 as you use them? In a way, yes, but it is more about you than the gun.
As you spend time with a weapon, you get used to its handling, recoil, and rhythm. Once you have that muscle memory down, you can absolutely dominate with just about any gun in the game. So the real "upgrade" is your own skill growing with practice.