Is it possible to restore from Time Machine backup if there is no OS installed on main drive
Yes, it's possible via recovery (Hold during startup ⌘ Command R). If you can't find a Time Machine backup in recovery, try holding ⌥ Option during startup and after that choose Time Machine drive.