You can always cancel but, you may not have too.
Most centers have some flexibility if you do.
The purpose of the exam determines if you should go ahead with it or not. You may be able to reschedule later or maybe just wait a little longer than you would have with the original appointment. Call scheduling first.
We are used to making adjustments for such reasons.