Nothing wrong with using system, just keep in mind in the future if you want to call other programs you may want to consider other methods because system can fail to call what you want to call depending on the environment variables (PATH) and some other factors (some malicious)