I think that's a question you can only answer for yourself, but if you're talking about skills relative to employment, you probably have no choice but to learn to use AI. I don't think "software engineering" as a skill will even exist in ten years, and not knowing how to use AI will be like not knowing how to use email or the internet, it will just be one of those constants in technological society you have to understand.
That shouldn't stop you from learning or writing your own stuff, though, if only for personal enjoyment and education. Just understand those skills might not be worth what you expect to the marketplace.