This really depends on the masters course you want to pursue.
Sometimes the courses need to be in the same discipline, other times a related degree is also acceptable.

The best way to find out our entry requirements for postgraduate taught study is by using our course search function.
Most courses clearly outline what they are looking for.
There may, however, be instances where the subject area specified are not always as clear cut to your particular circumstances.