To be a good skater you have to follow safety rules

I wrote
To be a good skater, you have to follow safety rules.

Yes..you are correct.