No, you do not need Java to run OptiFine. OptiFine is a standalone application that does not require Java to run.