Yes, there is a slightly a little difference between Java Edition and Bedrock Edition of dungeons though they look alike.
In Java Edition, dungeons can spawn near the cave at any height.
On the other hand, in Bedrock Edition, dungeons can be generated as underground buildings above sea level.