Hi, @Sergi Díaz Ruiz
Thank you for posting in Microsoft Q&A forum.
Not necessarily, Configuration Manager automatically calculates the Subnet ID with the Network (default gateway) and Subnet mask values you provided. So two different subnets may have the same Subnet ID. That's why it's not recommended to use IP subnet to create a boundary.
You may check Jason's blog for more details:
https://home.memftw.com/ip-subnet-boundaries-are-evil/
https://home.memftw.com/ip-subnet-boundaries-still-evil/
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Add comment".