Yes, anyone can officiate a marriage ceremony of a friend or a family member once they’ve been legally ordained as a wedding officiant.  Just remember to plan this well so you have enough time to get your marriage license before the wedding ceremony. Otherwise, you won’t be able to marry your friend.