ETA - do you have a obd2 reader? Does the scan tool see rpm's?
Yes a compression test would tell you if the valves are sealing or not, its more of a general health test. Or if there is a issue with the rings (put a little oil in the cylinder and re test, if compression goes up its the rings). Leakdown test will tell you if it's the rings, head gasket, or valves. You will have to put each cylinder to top dead center (use a small wood dowel in spark plug hole to find top dead center).
If you hear hissing air from the throttle body, it's intake valves, hissing air at the tail pipe, exhaust valves. Hissing air out the oil fill cap, rings. Bubbles out the radiator, head gasket or cracked head/block. Here is a vid on how to do the test:
https://youtu.be/8yuCHzqH7MY?si=XRGnitPtmPHtD_p1