Depends on what kind and what quality MTB you’re thinking of.
Department-store bikes that mimic as MTBs may fail at anything more stressing than a wheelie. A DH bike will probably survive any trick you’re capable of. Enduro/trail bikes are almost as strong.