Can smoking cigarettes or vaping (basically nicotine) cause permanent brain damage?

Can smoking cigarettes or vaping (basically nicotine) cause permanent brain damage?