Yes, you can exclude any person from the will if you wish. However, in the case of a spouse, they may be entitled to a certain minimum bequest by law.