Yes. Upgrades you have already bought stay unlocked, so purchasing a better weapon does not lock you out of the earlier ones — you can switch between them as the situation calls for.
That flexibility is more useful than it sounds. A heavier weapon is not automatically the right choice for every room, and having the full set available means you can pick for the fight in front of you rather than being stuck with your most expensive purchase.