It's a bit more complicated than that, though. Because the alternative was to let the Soviets take over the whole continent. And in that 'framework' the UK aligning with the Nazis was actually more natural choice.
Regardless, Britain would not have supported a cohesive Europe-wide power even to fight the USSR, as proven by the postwar bickering with DeGaulle.