You can absolutely use candy bars in a recipe instead of chocolate chips! Substitute the amount of chocolate chips with chopped-up chocolate bars. Some things to keep in mind are the type of candy bars and how much sweetness they have, you may want to adjust the sugar in your cookie base.