Most modern CD players are region-free and will play CDs from any country, including Japan. However, compatibility depends on two factors:
Some older or budget players are region-locked (typically Region 2 for Europe/Japan, but not always). Check your player's manual or specifications for "region-free" or "multi-region" support.
While CDs use a region coding system (Regions 1–6), it is rarely enforced on audio CDs. Most commercial music CDs are region-free. However, some Japanese releases—especially DVD-Audio, SACD, or hybrid discs—may have region restrictions. Standard Red Book audio CDs almost never have region coding.
Bottom line: For standard music CDs, you'll almost never have an issue playing a Japanese disc in a UK player.