Kind of a dumb question, but yes, any recipe that calls for oil you can substitute in Cannabis butter or oil.
Careful if you're new to edibles. The high is extremely strong and lasts much longer than smoking/ vaping. Start with half a muffin, cookie, etc and wait an hour to see how it hits you.