This is possible. Onyx will work (I think), and Secrets is a good resource, but to make it even easier, here are specific instructions. To pin your dock to the bottom-right corner, just open Terminal (in Applications > Utilities) and type the following:
defaults write com.apple.dock pinning -string end
then hit return. Then type:
killall Dock
and hit return again. You’ll see the dock disappear, then reappear. When it reappears it will be at the bottom-right. To change it back, just do the same thing but type “middle” instead of “end”.
This hidden preference is all over the web, but I got it from here. There are a few other useful hidden preferences in the Finder, and programs like Onyx give you an easy way to tweak the settings. But it’s just as easy to use Terminal.
Oh, and if someone tells you to write stuff in Terminal, please make sure you trust the person before you actually do it. If you typed bad things there, then bad things would happen. But this command is very innocuous.