No, currently RMAD cannot detect automatically the SQL port used if it's different that the default port.
The port need to be specified during the configuration of the SQL database.
An Enhancement request was submitted for this feature.
Enhancement number is ADO-375527.
This enhancement will be consider for inclusion in a future release of RMAD.