A police officer can arrest someone if they have probable cause that would make them believe that person committed a crime. However, they cannot charge that person with a crime, because that is a formal legal process that can only be done by a government prosecuting agency like the District Attorney.