Yes, because he was part of it. Eve was tricked by the snake. The snake told Eve that if she had eaten the fruit that is in the middle of the garden she would to difference between the good and the bad. She listened and did it, she gave the fruit to Adam. Then, they realized that they both had made a sin.