Raspberry Pi 4 Home Server


I am new to home automation in general so this question may be naive. I want to send http requests from the app interface of my Android device to my home assistant on my linux system. This request should be redirected to an external http server (independent of home assistant) on a raspberry pi 4, and then turn on a wifi connected light. Is this possible with Home assistant? Im already sorry if this question has been asked previously but a search here in the forum did not provide me an answer :confused: .