Yes, a market maker can possibly take advantage of a bid-ask spread. They can simply buy and sell an asset simultaneously and make money from the bid-ask spread.