Two beginners together has special hazards. Kind of like 2 student pilots in the front seats of the same airplane (which isn't even legal unless there is an Instructor in charge).
If you are two mature guys who are totally safety oriented it should be fine.
If you two are still producing lots of testosterone and might be inclined to showing off a little, it might not be such a good idea.
As above, if your friend is shooting, you aren't- you're the safety monitor.
That's ALWAYS the case with new shooters. Their safety is in your hands. Your safety is in their hands. Watch those hands!
Pay very close attention to them until time and experience proves they are good on their own.
If possible, see if the person who taught you could be persuaded to teach your friend - at least for starters.