Show axis border when legend is outside plot

Hi all-

Is it possible to show the right y-axis border when placing the legend outside the plot? Thanks.

using Plots
pyplot()
plot(rand(10), legend = :outertopright)

framestyle=:box gives you borders around the plot, is this what you need? AFAIK the position of the legend has nothing to do with that.

Yes. Thank you!