This should be no problem as long as you have the same fields (same fieldinternalname) in both lists. Ensure you don’t refer to any lists using the GUID in your Custom JS code (if you have any) as this GUID will be different in different environments.