Short answer
Yes for user caches: close the app first, clear its cache, and expect the next launch to be slower while it rebuilds. Leave system caches to macOS. Clearing a cache does not delete your documents or settings.
What a cache is
A cache is a stored copy of something an app would otherwise have to fetch or compute again: a thumbnail, a downloaded image, a compiled shader. It exists to save time, so it is safe to remove. The app builds it again when it needs it.
User caches
These are in ~/Library/Caches, with one folder per app or service. Open it with Go > Go to Folder (Command-Shift-G). Quit the app, then delete the contents of its folder, not the folder itself. Start with the largest folders; they are where the space is. The Library folder guide has the full list of what else is in there.
System caches
Caches in /Library/Caches and /System are managed by macOS. Leave them. A restart lets macOS clean up what it no longer needs, and deleting them by hand gains little.
App-specific caches
Apps such as chat and music apps, and browsers, can hold large caches. Where the app has its own clear-cache option in its settings, use that, because it knows what is safe. For browsers, see how to clear your browser cache.
Why caches come back, and why that is fine
Apps refill their caches as you use them. A cache that reappears is the app working as designed. Clearing caches frees space once, but it will not keep a full disk free. For a lasting fix, find what is growing with Mac storage full: what to check first.
What JunkTrace does differently
JunkTrace puts caches that apps rebuild themselves in the group removed at once. Nothing is removed until you press Clean, and the scan is free and removes nothing.