I have the following project structure of which is want to move the marked\* folders to a single git submodule, since they are dependent on each other. Is this possible in git?

```
main_project
|
|-backend
|  - backend_submodule*
|  - other
|
|-frontend
   - frontend_subodule*
   - other

```