Yes, if online sports betting in your country is legal, then the MLB should also be legal to bet online. Always check with your local online sports betting laws to make sure you know the regulations. Given past discretions, it is also illegal to bet on baseball if you are an active player or manager in the MLB.