Programming Assignment: Transfer Learning with MobileNet (SoftMax )

in Programming Assignment: Transfer Learning with MobileNet
after load ImageNet

the last layer is Dense.
Isn’t it, does the last layer have to be SoftMax layer?

When include_top = True, the last layer is a dense with softmax activation (see here)