Can We use Port and its alternate functions simultaneously

I use one of the derivative of 8051 ie At89s8252.
Here i want to switch the port function
for example

Enable Spi
use spi port
....
....
....
disable spi
use port (same port of spi)
enable spi port

More questions in this forum