As long as there is an internet connection - theoretically speaking yes, cryptocurrency could last forever. However, we don't know what the internet may do or look like in 100, 500, or 1000 years from now!
If you look around you see that nothing lasts forever. But Bitcoin is becoming more and more popular now so it can be said that its future is much better and we will see the role of its activities everywhere. If you look at the internet, you will see that:
#Internet users in 1997: 140 million
#Internet users in 2007: 3.7 billion
#Internet users in 2022: 6 billion
Now:#Bitcoin users today: 140 million
So, What kind of development can come in the next time in the middle of Bitcoin. You don't have to say that anymore, you just get the idea.