I got a macbook pro 15" late 2007, core 2 duo 2.2 ghz and run MacOs 10.11.6 (El Capitan).
Although it may feel a little bit slow, but it will work just fine. Yosemite is 10.10 right? So, yes you can upgrade it to Yosemite even further to El Capitan. But we cannot upgrade it to Sierra.