I don't think that you can prevent your device displaying nearby networks to which you have never joined. However, you can absolutely stop your device automatically connecting to any network to which you have access. You should be prompted or asked if you wish to join a network.
On an iphone, in wifi settings "Ask to Join Networks" should be set to "Ask" and "Auto-Join Hotspot" to "Never" or "Ask to Join"