A while back in EWR I once did a companion upgrade in the PC -- then later noticed another friend on the same flight, so asked for another upgrade at the gate.
It was granted, though right before the door closed the agent came on to fix the mistake and send one person of my choosing to the back. Pretty empty flight both in first and coach, but with that as an example I'd say don't count on it even if there is space.