The short answer is yes. If you come from a nation member of the European Union and have a European Identity card that is enough. In most situations you will not even need to show your passport/ID card as you enter into Hungary arriving with card, bus, train or arriving with flight to Budapest Airport. But in case you need to show it, that is enough.
Budapest Guide > EU Identitiy Card