It happened Wednesday evening on Junction Road.
Police say no one in the first car was injured, but a driver and passenger in a second vehicle suffered minor injuries.
"I was going to work ... all of a sudden the glass broke and my friend that was driving the car, looked at him, he looked at me, he got grazed, I did not get hit," victim Karan Samuels said.
Police say around 9 p.m. Wednesday the cars were both hit by bullets fired by 18-year-old Cody Pullen.
"When the window went out, I thought it was a BB gun, until the cops said that there were bullet holes all along the side of the car," Samuels said.
Police were interviewing the victims when they say they noticed a car slowly driving away.
"Had our officers not seen this car thought it was suspicious, there really wouldn't have been much to go on," Garner Police Sgt. Chris Clayton said.
Pullen was behind the wheel. He told police the shooter had run off on foot and that led to a massive man-hunt for hours with special teams, a helicopter and police dogs. But police say Pullen later admitted he lied.
When police searched his car, they found six long guns, shotguns and rifles that had been stolen from a home in Johnston County earlier Wednesday.
Pullen is charged with three counts of assault with a deadly weapon with intent to kill and six counts of possession of stolen property.
Thursday afternoon, police said they were also investigating the shooting of two dogs between Junction Boulevard and Tryon Road.
One of the dogs was killed and a second injured. Police said the injured animal was taken to the NCSU Veterinary Lab for treatment, and a necropsy will be performed on the deceased dog to determine its cause of death.
The dogs were pets of a homeless person who lives in the area and detectives say the shootings are likely related to the Wal-Mart incident, however, no charges have been filed yet.
Pullen is a senior at Middle Creek High School in Apex. His classmate, Becca Snyder, tells ABC11 Eyewitness News Thursday that she was floored when she learned what Pullen's accused of doing. She says he is a good friend and he usually keeps her out of trouble.
"Even if my attitude rises a little bit, he's like, 'now, we got to get through school, none of that drama,' and he's such a calm guy," Snyder said.
She says she was even more surprised about what happened to the dogs, because Pullen works at a pet store.
"Unless they were attacking him and almost killing him, he might do it then, but no," Snyder said.
Pullen made his first court appearance Thursday afternoon and his bond was set at $500,000. He has requested a public defender and will be back in court on Oct. 23.