Must I live 330 days in a foreign country to qualify for exclusion?

This is probably a stupid question but I just want to make sure I understand correctly. If I worked less than 330 days outside the country then I do not qualify for the foreign income exclusion? I only worked for 3 months in a different country. Thank you for your help.