Yes, you can! The first example is much more informal. I would also say “you’re out of your mind” and delete the “like”...it doesn’t work so well in that part of the sentence.
The second example is much more formal, but essentially means the same as the first sentence.
When I read these phrases I think, “the person saying these sentences are trying to tease, or joke with someone who did something ridiculous or crazy”, OR, “this person is genuinely worried about another person’s mental health”. Either way, they work grammatically and flow pretty well! They have different impact depending on how you use them in context :) great job!