Yes.You can do an 1:1 substitution
Please Note:
Using butter will provide it a richer taste than when made from just vegetable oil. But I would recommend not making a substitute if the recipe specifically calls for Olive oil. Olive oil imparts flavor and is therefore used for that purpose in the recipe wherein butter (flavorless) might not be a good substitute in that case.