I still don't see what you are trying to accomplish.
You probably are aware of the fact that you can configure each individual pin on port D separately so some of them are used as inputs some as timers.
It IS possible to change the state of the port (or pin for that matter) back and forth but you have to be careful about the timings, depending on your application you might need to have a small delay between the switches.