Yes - take it back and demand a full refund. A dealer is required by law to sell you a vehicle fit for the purpose for which it was built (i.e. starting and driving !) and is also required to tell you of any faults with it.
If he knew about the problem and didn't tell you, he's broken the law. Mention lawyers and watch how quickly they swap it for you....