Yes, it is possible to do this. In Selenium IDE version 2.4 it is easy to do as follows:
- Record your test cases using Selenium IDE
- Click File - Export Test Case As - Java / JUnit4 / WebDriver
- Save File as .java
Your test cases will be converted to WebDriver.