Yes it is the correct sensor indicated in the pics. There are multiple reasons for that code to come up and they are all not caused by a faulty O2 sensor. That's why it's always better to run through the diagnostic procedure to determine what is causing the code.
It may be the o2 sensor and the problem could be fixed by replacing it. It could also be a bad connection, bad ground, injector fault, or an air intake leak causing the issue.
I'm just here for the gasoline.