Is the MMA845X the same as the MMA8452Q?

I'm working on an arduino project that involves the MMA845X. However, I am inexperienced in programming. When looking up for an example code, I could only find those for MMA8452Q. I tried with the example code for MMA8452Q but it does not work. So I'm wondering whether they are the same and whether there is anyone that could help me with the programming for MMA845X. Thanks (: