Yes, you can have all or none of your games installed and they would all stay in your library. One exception is F2P games, where it doesn't show up in your library if uninstalled, but you still "own" it. Your data is saved if the game supports cloud saving (most, if not all F2P games do). You can go to the store page of that particular game to install it again.