Generally, states don’t recognize another states’ MSF completion certificate. You might have to make a call to your state’s motorcycle licensing coordinator. Now, if you’re only taking it for the experience (which I recommend at the very least) then have at it!
Also, and you’ll want to check on this, many states REQUIRE the class before you can get a motorcycle endorsement. That makes total sense…why would they let ANYONE ride before they know how?