Yes, generally it's fine to use a razor on the head once a month from the surgery has passed. At a year you should definitely be safe.
At one year you can cut your hair anyway you like, even with a razor if you like a razor cut. These hairs should be completely normal by this time