I have been doing that at every workplace since the 1990's. Of course having a vpn to work from home and to be known for being reachable late in the evenings I was never questioned about my hours except once, and that was after I had given notice by the prick the notice was caused by.