No, an application cannot support both at the same time because there'd be name collisions.
You can of course install the application twice, once into /usr and once into /opt. But that works for GNOME or KDE, too. In fact, GNOME development is done that way. Everyone has the distro's GNOME installed in /usr and a jhbuild somewhere in the home directory or /opt.