If the boyfriend you are talking about is really just a friend, of course. Because the most important thing is that we love ourselves. But if you are a woman and want to be a boyfriend with a boyfriend, it is not appropriate, because you don't know each other, and what you believe doesn't match what you don't believe, so you can't bear the same shackles. How do you know what he looks like? There are many illusions in the network.
If you are a male and want to have a male boyfriend, it is even more wrong. Because this is an abomination to God and shameful.
Jesus loves you. Do as Jesus taught you, and don't do anything that looks bad.