It depends on the scope of front-end work.
AI could handle much of the front-end development process, but the real challenge lies ahead. In the future, the UI/UX of a product will matter more than ever. Even if AI takes over front-end tasks, the bigger question is: will AI also take over UI/UX design? That's where the real creativity and differentiation lie.