Create a WiFi network on one Mac, join it with another Mac. No DHCP server is running, but thanks to the self-assigned IP fallback, the two Macs can still communicate with each other. This can be tremendously useful.
You are correct for Ad-Hoc networks.