Yes, you can replace one of your Moshlings, but it depends on your membership.
If you're not a member, you can only keep 2 Moshlings at a time, and you're able to swap one out when you want a new one. If you are a member, you can have as many Moshlings as you like, so there's no need to replace any.