Technically - they are defined as "biology of If the.."' The definition can be bent a bit. In bending it, even if it is defined as science-realistic, there are quite a few projects that have dealt with the subject that magic was a component in the evolution of animals.
So you can deal with this issue in this direction. The only condition is that the magic has some kind of limitation, like a physical law.
In short - yes, you can mess with evolution around magic as long as it has clear rules and limitations.