While it is possible to visit Shimla and nearby places in 2 days, it would be quite rushed and you would have limited time to explore each attraction. It is recommended to allocate at least 3-4 days to fully enjoy and experience the beauty of Shimla and its surroundings.