Calling apex function

I have written some code I need to run before I call the skuid page… it creates a running balance entry on a series of charges for an account. Can I use this last method in a way that makes sure the running balance code runs before the skuid page loads ?