I'm not sure if you are asking can you do both on the same day or not. However, we did walk from the port to the town, but it is a LONG walk. There are cabs that you can grab if you want and also a bus I think. Rhodes is a very walkable town. Get a good guidebook and enjoy.
Lindos is also a valuable place to visit. Done both.