It should be possible: Migrating from Owncloud 9.1 to Nextcloud
In your case, it should be just moving the config.php. In Apache, you probably have to change the default paths (if the example from the doc is used):
Alias /mycloud /path/to/nextcloud
<Directory /path/to/nextcloud>
...
</Directory>
by the way: I wouldn’t migrate a productive environment to a beta version. Rather wait a few weeks until the final version of Nextcloud 10 is released.