Yes, 2 days are enough to explore Hampi. On the first day, you can visit Virupaksha Temple, all the other temple ruins and Vittala temple, and the sunset at Hemakuta Hill. The second day can be for Matanga Hill sunrise and then going to Anjanadri Hill and Sanapur Lake.