Sure, various libraries help you with that, such as QT. Check out this site:
https://wiki.qt.io/Qt_for_Beginners
Note: in OnlineGDB the server only forwards the standard output, so a QT application will only work on your local machine and not in OnlineGDB.