No: to do that you would have to have a complete toolchain (compiler, linker, etc) on the Target to compile, link, load, and run the resulting code.
This is the same question as your other thread:
https://community.st.com/s/question/0D53W00001ZZYGdSAP/how-can-i-use-sd-card-with-httpd-server-lwipfatfsethernethttpdsdcard
isn't it?
A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.