For a PCB it’s called a rework, and it’s very common for first spins of boards to have to do one.
Also common is to patch around issues, when possible, in firmware. This is often lower cost/effort, but can’t fix everything.
There are similar kinds of fixes for purely mechanical parts. Depending on the part and problem, mechanical can be easier than a PCB rework (eg: modify a part in CAD and 3D print or get your local machine shop to do a run).