As of a few years ago, the average cost for a winning campaign for the House of Representatives was about $1.5M. The average cost for a winning Senate campaign was a bit over $10M.
Sure, if you think it's that easy. Problem is that there are lots and lots of examples of people spending ridiculous amounts of money in politics trying to sway an election, and losing anyway.