Absolutely. The iMac specs are very capable, certainly as much so as a MacBook Pro. There are things that you really need to throw hardware at that might require a Mac Pro, but for the vast majority of tasks, including what you mention, the iMac will be fine.
-Lee