Yes, in this case, you can issue an invitation, but it is worth keeping in mind that if the inviting party is a person who lives in Ukraine on the basis of a temporary residence permit, then the period specified in the invitation for a foreigner to visit Ukraine cannot exceed the validity period of residence permit.