Yes, sure. The government of India approves the online mode of education and has allowed distinct universities to offer education virtually. Hence, pursuing an online graduation or post graduation degree from a recognized university is acceptable and acknowledged at UPSC examination or any competitive examinations.