Hi Shweta,
Yes, you can host/deploy a HTML app on gateway as a BSP application without any issue.
To load UI5 library or not is purely independent. While you request the app, the control would go to index.html and from there, developer has freedom to do whatever he wants to.
Regards,
Ekansh