Answer
Yes, Vivek Oberoi has portrayed real-life characters in his films. For example, he played the role of Eklavya in the film Eklavya: The Royal Guard, which was based on the story of Eklavya from the Hindu epic Mahabharata. Oberoi has also played the role of Mahatma Gandhi in the film The Legend of Bhagat Singh, which was based on the life of Bhagat Singh, an Indian revolutionary.