Is there a way to check what API calls a program is making?

Thanks in advance