My friend told me they know someone who is not a lawyer and does basic family immigration petitions on the side for less cost. Is that okay?

No, anyone who is not a licensed attorney can't charge you and file immigration cases, as it is illegal. We do not recommend it as they are not experts and can make mistakes that can cost you a lot of time and denials in the long run.