Losing your sense of smell can indeed alter your ability to taste certain foods so some foods you eat may not taste as good as they once did when you had a good sense of smell.
Your sense of smell does affect your taste but losing your sense of smell doesn't always completely cause a loss taste.
Most people who lose their sense of smell are still able to tell between salty, sweet, sour, and bitter.
But you do need your sense of smell to taste things correctly but you can still usually taste things even without your sense of smell.