no, it wasn't. where did you learn that malarkey? what lying educational institution told you that wrongness?
https://mises.org/power-market/police-have-no-duty-protect-you-federal-court-affirms-yet-again
https://prospect.org/justice/police-have-no-duty-to-protect-the-public/
Local police are not part of the federal government. Furthermore, police exist to serve and protect. Those court cases merely say that police officers can't be held personally liable for failing at their jobs. Nice try.