As long as you are betting on a legal online bookmaker, yes, it is legal to be in the UFC.