I know that you can use ACF functions in template files, but can they also be used in plugins?
Yes, as long as the ACF plugin is loaded. You can’t use calls to any ACF function until the plugins_loaded
hook at the very earliest. Most of the time this is not an issue. But you should also check to make sure at some point that ACF is actually loaded and active before calling any ACF functions at all.