MDMA on it's own doesn't impact your immune system noticeably as far as I know, but I'm guessing that you're failing to mention that you'll also drink a shitload, smoke a shitload, stay up til the morning, and maybe make out with some strangers, share some bills to snort shit, etc etc, and all THAT stuff
will get you sick