C++ member function question

Can I call a member function inside of another member function if they are apart of the same class?

Essentially, I need to update a private variable accountBalance with a public creditBalance member function. I am curious if I can call a getBalance function (another public member function which returns the value of the private variable accountBalance) within the creditBalance function. That way I can store the value from getBalance in a local variable, add the credit amount to it and then update the accountBalance variable.

NVM, you can! MUAHAHAHAHA!!!

Cotton you can even do it with other classes you just have to make sure your method is public (for talking to classes outside the current class). Then you just include the file that you want to use, in the file where you want the function to run.

Try to compile it ;)