Yes, both の and こと are used fairly equal.
In writing or formal situation on business, we tend to use こと more to make sure what we are focusing on.
の sounds a little casual, but こと is never considered too square in speaking between friends. I use both very often.