Kai Winters is 100% Incorrect - modern chains (anything intended for more than 6 speeds) have the pin peened when assembled at the factory and removing a pin and reinserting will leave the joint too weak and it WILL eventually fail - maybe in two rides, maybe in two years, but it is absolutely compromised.
Modern multi-speed chains have a special pin (Shimano) or quick link (all others) included when you buy them because you aren't supposed to reuse a pin that's been pushed out.
OP's plan to buy a quick link and use it to replace the link that would have been weakened by reassembly is a good plan.