NO, if any site offers both Forge and Optifine they are illegally rehosting the files.
Each Optifine version has a Changelog listed, for instance this one is for Optifine version 1.12.2 HD U E2, in this changelog it mentions "compatible with Forge #2729", this means it is compatible with the Forge version ending in 2729, which turns out to be Forge version 14.23.4.2729.