That's not quite right - a fish does not have a cortex.
The pallium of a fish and mammal are structured differently. A fish's (& bird's) pallium has a clustered (aka "nuclear") organization, while a mammal's has a mostly layered organization which is what is referred to as the cortex.
There is also more to a brain than just brainstem + pallium. In a vertebrate it's brainstem (aka hindbrain) + midbrain + forebrain, with the pallium being part of the forebrain.