Technically yes, but the real issue isn't whether you *can* - two weeks is still enough time to sort something out - but it's the timing that matters. You need to contact her today, not tomorrow! A phone call is better than any message, but here's the thing: don't just say "I can't come" and leave it at that. Offer an alternative right away. Maybe a special gift, or a call on the day itself to wish her well, or maybe you can skip the reception but still make it to the ceremony - it depends on how serious your work commitment is.
What the others have already told you about the phone call is right, but I think the tone matters too: don't apologize like you've committed a crime, just explain that a work situation came up and unfortunately it's non-negotiable. Most people understand that certain professional obligations can't be postponed!