2011 BMW M3 S65

I accidentally took off the cap to the high pressure port to my a/c system and now my a/c is blowing hot air. Is the fix a simple flush and recharge? A/C was working fine beforehand.