If there are no "Waits" in function X, then the function Y will not start until function X is finished.
If there are waits or async actions in X, you can set it as Asynchronous and use: Call Function X -> Wait for previous action to complete -> Call Function Y.