Both options are equally valid. Just remember if you are going to use canned chickpeas that they should be passed through water with the help of a drain. This will help cleaning them and removing the impurities. Conversely, if you are going to use uncooked chickpeas, they should be left to soak the night before and cook the next day.