That's fine.
Are you getting paid for whatever job you are doing in the university? Do you appear in the list of authors of the paper?