It may be possible to have an MRI after a joint replacement, but only if the hardware used is compatible with an MRI scanner.
If you are unsure about the safety of your implant in an MRI, you should talk to the surgeon who performed your hip or other joint replacement.