You could (would) buy the tickets under one account, but you would each have a skymiles number and when you enter the information for the 2nd passenger, you would enter the number there and each of you would get credit for your flight.
You would both be on the same PNR (same record) and so you would "stay" together if anything changed with your flights.