How will I now connect my wallet or will the wallet automatically connected main blockchain?
You can not if I am not wrong.
Because Lightning Network is a second layer solution so it does not connect directly to the layer 1, Bitcoin network.
You
are connected to the blockchain in terms of creating a channel opening (and closing) transaction that are broadcasted and saved on the blockchain.
It's also required to monitor the mempool for cheating attempts, therefore running a Bitcoin Core node on the same machine is usually required.