Is there a difference between the words ignorant and stupid?

Don't use stupid when you mean ignorant.

If you are ignorant of something, you simply don't know it:

I was ignorant of the plans to rebuild the area when I suggested we make some repairs.

If you are stupid, you are lacking normal intelligence:

Because he was considered stupid, he was not allowed to join the corps.