Is it worth learning Blueprints?

Absolutely, there no guaranty we even gonna see UE5 or 6 as UE4 is now being released in stream like way (and same as Unity and lot of other software now days, there always possibility they may switch to year version numbers) and it probably won’t come soon anyway as we still got lot of features that are not complete (Niagara, ray tracing, etc.). And i don’t think they will ditch it, they freshly (well 5 years or more) ditched UnrealScript from UE3 which was in unreal since very beginning in favor of Blueprint. Blueprint enable programming for artists, so thats also in that favor for keeping it.

You will learn programming via Blueprints, you still need that logical thinking which you can transfer to the any other programming language later on, Blueprint are also heavily object oriented so you can learn that from it.