Yes. The Pack-a-Punch machine will let you upgrade a weapon a second time.
The second upgrade costs considerably more than the first, and it is the reason late-round survival is possible at all. Save up before you commit, because the price climbs steeply and there is no partial credit.
Not every weapon benefits equally, so it is worth checking whether the gun you are carrying actually gains much from the second tier before you empty your points into it.