Yes. You can set limits on the Assistants response, you can customise how many tokens it can respond with. And you of course give the assistant the message, so you decide the input tokens.
All information is on the OpenAI pricing website, though not as easily understandable.