Unless you enjoy making things harder for yourself, it’s generally a lot easier and not that much pricier to replace the whole actuator assembly rather than just the master cylinder. By changing out the entire "guts" of the coupler, you can avoid any rusted springs or malfunctioning solenoids that could leave you stranded just 50 miles down the road.
Welcome to the forum!