As long as the commission is not based on any terms of the loan. 1026.36(d). And you would also have to be conscious of 1026.36(e).
_________________________
The opinions expressed are mine and they are not to be taken as legal advice.