The word “spelunking” was coined in 1944 in the United States of America, and as kind of a poke at the British term for cave exploration, “speleology”.
So you absolutely should not use it in your book about 19th century adventurers venturing into caves to find antediluvian monsters.
Just thought you’d want to know.