Of course, but this answer comes with a caveat. Offshore sites are perfectly legal. However, players based in the UK should not be offered the services of sites that aren’t licensed by the UKGC. It’s the casino’s responsibility to ensure that they comply with the rules. Individuals won’t get in trouble for accessing them, they just won’t have any protection under UK law.