Yes. Just visit the iCloud website using a desktop browser and sign in with your Apple ID. Go to Settings. Under the My Devices section, you should be able to see your friends iPhone. Click on the device and click on the blue cross button to remove it from your account.
If you do not see the Delete button, click Remove device (under the device serial number or IMEI number).
See this help partner for more information: