If there were no transactions, would mining be possible?
Yes.

Miners would just produce empty blocks. They would only be paid a subsidy (12.5 BTC per block, currently) and not any fees from transactions.

In its early history, Bitcoin had many empty blocks.