Yes, it is necessary for fire code compliance. If you have a fire start in an electrical outlet in the wall, it could easily and quickly travel to the floor bays above, across the floor and follow a wiring/plumbing hole to the second floor space or attic. Code (minimum) requires fire blocking at wall top plates and every 10' lineally in the wall or behind it; http://publicecodes.citation.com/ico...002_par031.htm
Please check locally with your Fire Marshall or Building Department.
If any ads are present below my answer or words underlined/colored, I do not condone/support/use the product or services listed/linked to, they are there without my consent.
WELCOME to the forums, if I forgot to say it!
The Following 3 Users Say Thank You to Gary in WA For This Useful Post: