There is no such clause in contracts of MBB employees. So anybody below partner level has no issue.
For partners, the situation always needs to be scrutinized with the help of a competent lawyer. Usually, there are some elements around prohibition to serve the same clients when switching to a competitor - unless explicitly desired by the client. But as I said - these are idionsyncratic circumstances which have to be sorted out on an individual level.