Employer 401k vs ira

is my elective deferrals into a 401k the same as an ira contribution?