How to hook up a WiFi thermostat. Having 5 wires and no C wire
You are correct
Based on the wiring diagram and provided photo, you appear to be correct that terminal 5 on your air handler's control block is your C terminal.  So, go ahead and run your new thermostat cable, using that as C while matching the existing wiring for the remaining connections.