You can absolutely use fresh cranberries in place of dried cranberries. Keep in mind that this may change up the texture and flavor of the cookie and will also give them a bit more tart flavor. Take extra care when folding the berries into the cookie dough so that you don't smush them.