Yes, you can technically "tame" a Ghost Leviathan but it is a dangerous task and new players shouldn't do this. Once a Leviathan is following you, swim to the surface and let it feast on the seamoth (or any other submarine). Afterward, it will follow you around without attacking you.