Yes, Oslo is a very walkable city with most attractions within walking distance. If you plan an appropriate route, you’ll not need to walk much more than 15 minutes at a time. You’ll likely only need to use public transport once or twice during your trip – apart from airport transfers.