You will not earn the miles for your girlfriend's trip. It may be in the booking but the names will not match and the miles will not be credited. Or, they will be credited and later removed. Potentially you can have your OP account closed if you are doing this intentionally, so I wouldn't even consider it.