Can both primary and secondary servers be online simultaneously in Log Shipping?
I am new to log shipping and I want to know can both primary and secondary servers be online at the same time like in replication,


No, not like replication where the records in the tables at the subscriber can both be read and updated. The secondary server can be in read_only/standby and restoring mode. When in read_only/standby mode the read only queries can access the database but would either block the restore operation or be disconnected when restore happens so that is not a truly online in the sense you are asking.