Would a Raspberry Pi with linux be more secure?

Recently, someone on Privacy Guides mentioned “lapdocks” which adds and external keyboard, trackpad and monitor to a smartphone. Using GrapheneOS, this would be a very secure and private computer.