Boot only when connected to a Pc
No, there is no trivial way to do this. You would have to write a custom bootloader for your phone.

If your intention is to protect your data, a viable option would be to use full disk encryption, which does not even require root.