Migrating from Electrum => Bitcoin core
Yes, importwallet exists.

Coverting a wallet from Electrum to Bitcoin Core is very hard, as both pieces of software have a very different idea of what a wallet is. Electrum relies on servers that provide indexed blockchain information to discover transactions, so its wallet does not store much information. Bitcoin Core needs all your transactions and keys actually available in the wallet so that it can operate independently.