TL;DR
Yes, generally. Covered butter can sit at room temperature overnight, especially if it's salted, but a hot kitchen changes the math.
Butter behaves differently from most dairy because of what it's mostly made of: fat, not water. Bacteria need moisture to grow, and butter simply doesn't offer much of it.
That's why leaving out a stick for easy spreading is common practice in a lot of kitchens, while doing the same with milk would be a bad idea.
Why butter is different from other dairy
Butter is roughly 80% fat and only about 16-18% water, and that low moisture content makes it far more resistant to bacterial growth than milk, cream, or soft cheese. Salted butter has an extra edge, since salt acts as a mild preservative and further lowers the water activity bacteria need to grow.
How long it's realistically fine
Covered, salted butter kept away from heat and sunlight is generally fine at room temperature for a day or two, and many people safely keep a small amount out for a week or more in a butter dish, topping it up as they go. Overnight is well within that safe range for most kitchens, and this is common practice in plenty of households and even some professional kitchens.
What actually matters
- Keep it covered, in a butter dish or crock — exposed butter picks up odors from the fridge or kitchen and dries out on the surface
- Keep it away from direct sunlight and stovetop heat, both of which speed up rancidity
- Only take out what you'll use in the next several days, not the whole block — keep the rest refrigerated as backup
- Use a butter bell or crock with a water seal if you want extended room-temperature storage with less air exposure
When to skip leaving it out
Unsalted butter has slightly less protection and spoils a bit faster, so refrigerating it is the safer default if you won't use it soon. In a hot or humid kitchen, or during summer without air conditioning, refrigeration is also the smarter call regardless of salt content — butter left in real heat can turn rancid, develop an off flavor, or even melt into a greasy mess on the counter.
What rancid butter looks like
Rancidity shows up as a sour, slightly cheesy smell and a yellowed, waxy look at the edges. It's a quality problem more than a dangerous one, but once you notice it, the butter is better used in baking than spread plain, or tossed if the smell is strong.
Butter alternatives and spreads
Margarine and whipped butter blends often contain more water and added oils than pure butter, which can make them slightly less shelf-stable at room temperature. Check the label — many spreadable tub blends are actually formulated for the fridge, not the counter.
Overnight on the counter is not a food safety gamble for covered, salted butter in a normal kitchen. Just keep it out of the heat, and refrigerate unsalted butter if you're not using it right away.