Do you not sin every day? Yet you are allowed to take communion are you not?
Otherwise, if the sin is venial, or minor, such as telling a white lie, or yelling at your wife, then it does not prevent you from receiving.
I am not a theologian, but a lay person.