Is the next sentence syntactically and semantically acceptable?

Mary has more friends than just Bill and Pete.
acceptable