If I run my project on Windows 10 using Eletron, can I build the project for Android?

My PC only has 2GB of RAM, so I can’t run my project on an Android virtual device because the minimum RAM required is 4GB. But to run applications for windows you only need 1GB of RAM. So I want to run my project with windows using Eletron and then build for Android. Is it possible or will I have to change the code?