Can a Labour prime minister get on with a Republican president?

Can a Labour prime minister get on well with a Republican US president? Or a Conservative PM with a Democrat in the White House?