Are the brain and spinal cord part of the peripheral nervous system?

They are the central nervous system (CNS). PNS is connected to, but separate to, the CNS.