Will work unchanged, though (stating the obvious) you'll need to get a new mains power cable (or adapter) for the UK - these are available very easily - Amazon is your best bet from a cost perspective.
I bought a 2018 Intel Mac Mini in Australia - used it in Canada whilst I was working over there and also in Ireland - each time I just bought a new Figure 8 power cable with the appropriate plug (refer Australian version below).
ArtiConnex|™ AU 3-prong plug to Figure 8 power cord, Figure 8 IEC-C7 AC Power Cord, F8 power supply cable, 2m TV power cord, IEC-C7 power cable, fits with VCRs, Xbox, TV, Monitor, Camera, shaver etc
Sorry for my sloppy language. By adapter I mean a something that converts the Australian Physical Plug to a UK Plug as they are different. Something like this from Amazon. I personally would go with the Figure 8 cable as recommended above as that's a more robust solution as cables often fall out of adapters.
As an Amazon Associate, MacRumors earns a commission from qualifying purchases made through links in this post.