Given the lack of clarity of your question, the answer is "it depends".

The caller of a function is always responsible for passing information the function needs, in the form it expects. ...