Yes, if you’re playing a game in demo mode and no real money is being wagered, you can legally play anywhere. If you’re playing free games using a casino bonus, that casino must be registered to operate in the UK for it to be legal.