Should IP addresses allow cidr notations

Problem:
When using the UI or API to add an address to an interface (ipmi in this case) it does not produce an error when the address is in cidr notation and the cidr is not removed upon saving. We have scripted items that use the interface information (new script that included the cidr) and historically it has not included the cidr information so our other scripts have made the assumption it would not be included. We will likely update several of our scripts to account for this.

My question here is should it be permissible to add an address of 192.0.2.10/24 as an example or should that produce an error because of the inclusion of the cidr /24 in the address field?

Distribution and version:
Alma 8
TFM 3.10.0