Yes. There won't be a problem, assuming that the devices in question are indeed ethernet devices and not just using cat5 wiring. That said you will need to be aware about what kind of PoE device you are plugging in. There are several evolutions of the PoE standard.
802.3af 802.3at 802.3bt
So make sure that if the devices requires 802.3at, the switch is rated to provide that.