An off-duty NYPD officer was grazed in the head by a bullet Monday when her Long Island home was sprayed with more than 30 rounds — apparently intended for her sister’s alleged gang member boyfriend, police and sources told the New York Post.

Nathaly Gomez Iglesias, who works out of the 103rd Precinct in Jamaica, Queens, lives with her sister and mother in the Brentwood home, which the boyfriend has been known to stay at and may have been previously used by members of MS-13, police and sources told the New York Post.

Gomez Iglesias was eating inside her home around 2:30 a.m. when the shots were fired, police said.

The officer was taken to South Shore University Hospital in Bay Shore, where she was treated for non-life-threatening injuries.

If officials find proof of Iglesias being involved with gang members and criminals that would mean that she broke NYPD rules and could be subject to discipline, CBS reports.

The home was seriously damaged.