Does a persons beliefs matter for dating?

Like I mean their religion, do they need to have the same faith as you, or only certain religions you’d date etc