Can a new Ionic project be created by copying and pasting all folders and code from another Ionic project?

I am a novice to mobile app development.
I have an existing Ionic app called Confusion-Ionic which is working correctly on the Android device. It is able to connect to my rest server, retrieve data from the server and display the data on the app running on the device.
I tried to create another Ionic project by creating a Windows folder called MyApp and then I copied and paste all the folders and code from Confusion-Ionic into MyApp.
When I tested the app MyApp, it works correctly when run in an emulator, but when I run it on the device, it did not connect to my rest server. There was no error messages, the application actually loaded and ran on the device but no data was retrieved from the server.
Has this to do with the way I created this MyApp project?