Is it ok to use out parameters in a void function?

Yes you can absolutely do this.
Consider renaming your function. Out parameters are not return values, so you don’t really “get” anything. Just based on your function signature and parameter names, I’m guessing this function is more intended to calculate the values of your out params.

I could be wrong and this is a minor nitpick but there’s a good reason to keep your code as self documenting as possible.