Yes, it is legal to post memes as they are protected under copyright law. However, reusing, sharing, or posting other people's memes violates the law. Only the creator of the meme has the sole right of publishing and use the meme.