I guess... Never used it. But optifine should be compatible with forge. Just put the optifine file in mods folder.
I tried to use optfine and...didn't go well... it said i was using an outdated version of optfine, but I was using the latest version of it