Using dried cranberries instead of chocolate chips in cookies
Of course it won't be the same, it will be different. If the cranberries are sweetened, which dried cranberries often are, then just a straight substitution should work. The cookies will be a bit tarter, but should be just as delicious.

If the dried cranberries are unsweetened, then it probably does make sense to add a bit of sugar. You can do that by adding perhaps 1/8 more to the cookie, or you can glaze the cookies with a powdered sugar/water glaze.