Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
The answer is NO. Take $f(x) = 2x$ and $g(x) = 2(1-x)$ on $[0,1]$, then $\int fg = 2/3$ and $\int f^2 + g^2 = 8/3$, but $\int f^2g + fg^2 = 4/3$.