Yes, parents in same-sex relationships have exactly the same rights to time off and pay as those in heterosexual relationships.
Treating parents in same-sex relationships differently from those in heterosexual relationships in relation to shared parental leave is likely to amount to sexual orientation discrimination.