This is exactly what remote working means, law wise. It is why many companies cringed at sending everyone home. Lots of laws involved.
For instance, if you tell me I must work remotely and have no office to come to, then I can move to another State. Many people did. I did. Tax and labor laws became a nightmare.
My wife’s company does not allow remote work from Colorado.
EC