Should God bless a nation that doesn’t thank Him?

Should we expect God to bless a nation that doesn’t thank Him? Should a nation offer thanksgiving to God in order to receive His blessings?