Yes, in fact repeated spam blocks will automatically roll up IP address blocks to increasingly large subnets, such as 255.255.255.* and 255.255.*.*
255.255.255.*
255.255.*.*
I’m not sure what this code does with IPv6 though.. cc @mpalmer @zogstrip