im only looking to do word processing, internet browsing and online lectures, teams meetings etc
...........................
Those I underscored are not "low-impact" activities any more. Anything with modern video is demanding on hardware and often has higher macOS requirements that a 2009 Mac can support.
The other problem is that there are two 2009 iMac sub-models with very different capabilities One cannot be upgraded past Mac OS 10.11 and the other is constrained to no higher than OS 10,13. Current OS is 10.15 and a new version is due to drop within a month or two. You will run out of browser support at some point, particularly if you buy the "Early 2009" version.
If you already owned this computer I would be glad to suggest to ways to help it live longer but, as you are shopping, please don't get a 2009.